//
//  C_CartModel.m
//  ChineseCollegeStudentsNetwork
//
//  Created by Zheng on 2019/3/23.
//  Copyright © 2019 刘喆. All rights reserved.
//

#import "C_CartModel.h"

@implementation C_CartModel
- (NSString *)imageUrl {
    if ([_imageUrl containsString:@"http:"]) {
        return _imageUrl;
    } else {
        if ([_imageUrl containsString:@"@"]) {
            _imageUrl = [_imageUrl substringWithRange:NSMakeRange(1, _imageUrl.length-1)];
        }
        
        return [NSString stringWithFormat:@"%@%@",kBase_URL,_imageUrl];
    }
}
@end
